package com.by.token;


public enum ValidResult {

    INVALID(1, "token无效"), EXPIRE(2, "token过期"), VALID(3, "token有效");
    int code;
    String msg;

    private ValidResult(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public String toString() {
        return this.msg;
    }
}
